package com.atguigu.gmall.sms.config;
/**
 * Project Name: gmall-learn.
 * Package Name: com.atguigu.gmall.pms.config.
 * File Name: SecurityConfig
 * Copyright (c) 2020, 南京天芯云数据服务有限公司.
 */

import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 *
 * Class Name: SecurityConfig
 * FQDN：com.atguigu.gmall.pms.config.SecurityConfig
 * Author: 阿辉
 * Date: 2020/4/7 16:12
 * Description:
 *
 */
@Configuration
public class SecurityConfig extends WebSecurityConfigurerAdapter {

    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http.authorizeRequests().antMatchers( "/**" ).permitAll();
        http.csrf().disable();
    }
}
